package io.github.source.media.bean;

import java.io.IOException;



/**
 * @ClassName: MediaCall
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author: huangrongcai
 * @date: 2024/6/24
 * @Copyright: 黄嵘才（HuangRc)
 */
public interface MediaCall {
    public MediaQuery query();

    MediaResult execute() throws IOException;

    /**
     * Cancels the request, if possible. Requests that are already complete cannot be canceled.
     */
    void cancel();

    interface Factory {
        MediaCall newCall(MediaQuery query);
    }
}
